import React from "react";
import "./index.less";

export default function ListCard({
  data = {},
  type = "",
  detailClick = () => {},
  applicationClick = () => {},
}: any) {
  return (
    <div className="ListCard_contarnier">
      <div className="lc_imgBox" onClick={() => detailClick(data)}>
        <img src={data?.img || ""} alt="" />
      </div>
      <div className="lc_content" onClick={() => detailClick(data)}>
        <div className="lc_c_title">
          <span>{data?.title}</span>
        </div>
        <div className="lc_c_type">
          <span>{type || ""}</span>&nbsp;|&nbsp;
          <span>{data?.sentTime || ""}</span>
        </div>
      </div>
      <div className="lc_application" onClick={() => applicationClick(data)}>
        去报名
      </div>
    </div>
  );
}
